<#include "../../page.ftl" />
<#assign security=JspTaglibs["/WEB-INF/security.tld"] />
<table class="table table-datatable table-gray">
    <thead>
    <tr>
        <th style="width: 35px;"><input id="checkAll" type="checkbox" value=""></th>
        <th>操作IP</th>
        <th>操作时间</th>
        <th>操作人</th>
        <th>操作机构</th>
        <th>文件名称</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <#if documentsTable.rows??>
        <#list documentsTable.rows as document>
        <tr>
            <td><input name="ids" type="checkbox" value="${document.id?c}"></td>
            <td>${document.operationIp!''}</td>
            <td>${(document.operationDate?string("yyyy-MM-dd HH:mm:ss"))!''}</td>
            <td>${document.operationUserName!''}</td>
            <td>${document.operationOrgName!''}</td>
            <td>${document.docUrl!''}</td>
            <td>
                <@security.authorize ifAnyGranted="ROLE_DOCUMENT_DOWN">
                    <a class="btn btn-green btn-radio nopadding" onclick="return downloadDoc('${document.docUrl!''}');"
                       title="下载"><i class="fa fa-download"></i></a>
                </@security.authorize>
        </tr>
        </#list>
    </#if>
    </tbody>
</table>
<#if documentsTable??>
    <@page table=documentsTable formId="search_document_table"/>
</#if>